package com.bristua.mall.user.controller;

import com.bristua.mall.common.bean.Result;
import com.bristua.mall.common.utils.HandleResultUtil;
import com.bristua.mall.user.biz.UpdateUserDefaultTakeDeliveryBiz;
import com.bristua.mall.user.model.TUserAdress;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/3/24.
 */
@RestController
@Api(value="修改收货地址",tags={"修改收货地址"})
public class UpdateUserDefaultTakeDeliveryController {
    @Autowired
    private UpdateUserDefaultTakeDeliveryBiz updateUserDefaultTakeDeliveryBiz;
    @PostMapping(value="/api/user/update/address")
    @ApiOperation(value="修改收货地址")
    public Result updateUserDefaultTakeDelivery(@RequestBody TUserAdress tUserAdress){
        updateUserDefaultTakeDeliveryBiz.updateUserDefaultTakeDelivery(tUserAdress);
        return HandleResultUtil.updateSuccessResult();
    }
}
